<pre>
import time


class Person(object):
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def speak(self):
        return ("姓名：%s,年龄：%s,") % (self.name, self.age)


class Student(Person):
    def __init__(self, name, age, school, my_id):
        super(Student, self).__init__(name, age)
        self.school = school
        self.my_id = my_id

    def speak(self):
        return super(Student, self).speak() + ("学校：%s,学号：%s") % (self.school, self.my_id)

    def run(self, v, times):
        self.v = v
        self.times = times
        print("学生跑步距离为："+str(self.v*self.times)+"米")


class CollegeStudent(Student):
    def __init__(self, name, age, school, my_id, language):
        super(CollegeStudent, self).__init__(name, age, school, my_id)
        self.language = language

    def speak(self):
        return super(CollegeStudent, self).speak() + "语言：%s" % (self.language)

    def coding(self):
        print("I ", end='')
        time.sleep(1)
        print("am ", end='')
        time.sleep(2)
        print("coding ", end='')
        time.sleep(2)
        for i in range(10):
            print(". ", end='')
            time.sleep(0.5)


stu = Student("ltt", 20, "qinghua", "2000")
print(stu.speak())
stu.run(200, 5)

college = CollegeStudent("ltt", 20, "qinghua", "007", "Chinese")
print(college.speak())
college.coding()
</pre>